from django.contrib import admin
from django.urls import path, re_path, include
from django.conf import settings
from django.views.static import serve

# 使用相对导入
from . import views
# 自动生成路径
from rest_framework.routers import SimpleRouter

router = SimpleRouter()

router.register('banner', views.BannerView)

urlpatterns = [
    path('', include(router.urls)),  # 方式一
]

# urlpatterns+=router.urls  # 方式二
